vcStatistics

vcStatistics allows you to create flow type and state based statistics as well as access the properties of a Statistics behavior and related simulation statistics.

See in: Overview

Module: vcBehaviors

Parent: vcBehavior

Children -

Referenced by: vcFlow.Statistics, vcSetRobotStatisticsStateStatement.Statistics, vcSetStatisticsFlowStatement.Statistics, vcSetStatisticsStateStatement.Statistics

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
AverageActivePeriodTimeRealRGets the average amount of time a component was in one of its defined states.
BlockedPercentageRealRGets the amount of time a component spent in a blocked state, for example capacity issue, as a percentage of total time.
BreakPercentageRealRGets the amount of time a component spent in a broken state as a percentage of total time.
BusyPercentageRealRGets the amount of time a component spent in a busy state or was being used as a percentage of total time.
ComponentMaxCountIntegerRGets the maximum number of components that have been contained in a component at any given time.
ComponentMaxTimeRealRGets the maximum amount of time a component spent contained in a component.
ComponentMinCountIntegerRGets the minimum number of components that been contained in a component at any given time.
ComponentMinTimeRealRGets the minimum amount of time a component spent contained in a component.
ComponentsArrivedIntegerRGets the total number of components that have been transferred into a component.
ComponentsAverageTimeRealRGets the average amount of time components have spent in a component.
ComponentsCurrentIntegerRGets the total number of components currently contained in a component.
ComponentsDepartedIntegerRGets the total amount of components that have been transferred out of a component.
FailedPercentageRealRGets the amount of time a component spent in a failed state as a percentage of total time.
IdlePercentageRealRGets the amount of time a component spent in an idle state as a percentage of total time.
IntervalBlockedPercentageRealRGets the amount of time a component spent in a blocked state during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalBreakPercentageRealRGets the amount of time a component spent in a broken state during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalBusyPercentageRealRGets the amount of time a component spent in a busy state during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalFailedPercentageRealRGets the amount of time a component spent in a failed state during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalIdlePercentageRealRGets the amount of time a component spent in a failed state during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalRepairPercentageRealRGets the amount of time a component spent in an idle state during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalSetupPercentageRealRGets the amount of time a component spent in a setup state, for example warm up time, during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalTotalStateTimeRealRGets the total amount of time a component was in one of its defined states during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
IntervalUtilizationRealRGets the amount of time a component was busy during the last recorded simulation interval (which by default is every 60.0 seconds) as a percentage (busy state/100 * 100%).
See vcStatisticsManager for more information on how to change interval.
PartsAverageCountRealRGets the average amount of components that have been contained in a component.
PartsAverageTimeRealRGets the average amount of time components spent in a component.
PartsCurrentIntegerRGets the current amount of components contained in a component.
PartsEnteredIntegerRWGets or sets the number of components that have been transferred into a component.
Generally, this property is set to reset a count or collect from the start of a new process.
PartsExitedIntegerRWGets or sets the number of components that have been transferred out of a component.
Generally, this property is set to reset a count or collect from the start of a new process.
PartsIntervalAverageCountRealRGets the average amount of components that have been contained in a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalAverageTimeRealRGets the average amount of time components spent in a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalCurrentIntegerRGets the current amount of components contained in a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalEnteredIntegerRGets the number of components that have been transferred into a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalExitedIntegerRGets the number of components that have been transferred out of a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalMaxCountIntegerRGets the maximum number of components that have been contained in a component at any given time during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalMaxTimeRealRGets the maximum amount of time a component has spent in a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalMinCountIntegerRGets the minimum number of components that have been contained in a component at any given time during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalMinTimeRealRGets the minimum amount of time a component has spent in a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalTotalTimeRealRGets sum total of the amount of time each component had spent in a component during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsIntervalUtilizationRealRGets the percentage of a component's capacity being utilized during the last recorded simulation interval, which by default is every 60.0 seconds.
See vcStatisticsManager for more information on how to change interval.
PartsMaxCountIntegerRGets the maximum number of components that have been contained in a component at any given time.
PartsMaxTimeRealRGets the maximum amount of time a component has spent in a component.
PartsMinCountIntegerRGets the minimum number of components that have been contained in a component at any given time.
PartsMinTimeRealRGets the minimum amount of time a component has spent in a component.
PartsTotalTimeRealRGets sum total of the amount of time each component had spent in a component, for example the duration of each component on a conveyor added together.
PartsUtilizationRealRGets the percentage of a component's capacity being utilized: number of parts divided by component's capacity.
RepairPercentageRealRGets the amount of time a component spent in a repair state as a percentage of total time.
Scripting can be used to set repair time and include time waiting for a repair.
SetupPercentageRealRGets the amount of time a component spent in a setup state, for example warm up time, as a percentage of total time.
StateStringRWGets or sets the current state of component.
Use the States property to get an indication of available states in component.
Stateslist[tuple[String, vcStatisticsState]]RWGets or sets a list of defined states mapped to system states.
A state must be mapped to a system state.
SystemStateslist[tuple[String, vcStatisticsState]]RGets a list of available system states, which provides system state description and type.
TotalStateTimeRealRGets the total amount of time a component was in one of its defined states based on total time.
UtilizationRealRGets the amount of time a component was busy during a simulation as a percentage (busy state/100 * 100%).

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
flowEnterNonevcComponent componentManually records a given component transferring into component.

Parameters:
component (vcComponent): Component to record.
flowLeaveNonevcComponent componentManually records a given component transferring out of component.

Parameters:
component (vcComponent): Component to record.
getIntervalPercentageRealString stateReturns the accumulated time of a given state as a percentage of the last recorded interval during a simulation.
See more
Parameters:
state (String): State name.

Returns:
double: The accumulated time of a given state as a percentage of the last recorded interval during a simulation.

Exceptions:
ArgumentError: When given state doesnt exist in the list of known states.
getPercentageRealString stateReturns the accumulated time of a given state as a percentage of total time at the time of call.
See more
Parameters:
state (String): State name.

Returns:
double: The accumulated time of a given state as a percentage of total time at the time of call.

Exceptions:
ArgumentError: When given state doesnt exist in the list of known states.
getSystemIntervalPercentageRealvcStatisticsState systemStateReturns the accumulated time of a given systemState as a percentage of the last recorded interval during a simulation.
See more
Parameters:
systemState (vcStatisticsState): System state.

Returns:
double: The accumulated time of a given systemState as a percentage of the last recorded interval during a simulation.
getSystemPercentageRealvcStatisticsState systemStateReturns the accumulated time of a given systemState as a percentage of total time at the time of call.
See more
Parameters:
systemState (vcStatisticsState): System state.

Returns:
double: The accumulated time of a given systemState as a percentage of total time at the time of call.
getSystemTimeRealvcStatisticsState systemStateReturns the accumulated time of a given systemState at the time of call.
See more
Parameters:
systemState (vcStatisticsState): System state.

Returns:
double: The accumulated time of a given systemState at the time of call.
getTimeRealString stateReturns the accumulated time of a given state at the time of call.
See more
Parameters:
state (String): State name.

Returns:
double: The accumulated time of a given state at the time of call.

Exceptions:
ArgumentError: When given state doesnt exist in the list of known states.
warmupCompletedNoneNoneMarks the completion/end of a component's warm up period, thereby setting all statistics to zero at the time of call.
See more
For example, a component can be configured to run a delay or a certain number of time consuming tasks at the start of a simulation. When this method is called, warm up time is calculated from simulation start to time of call.

Events

Learn how to use events here. The events are also inherited from the parent class.

NameParametersDescription
OnFlowChangevcStatistics statistics,
float time,
bool incoming,
vcNode component
Triggered when a component is transferred into or out of a component.
See more
Parameters:
statistics (vcStatistics): Object that recorded the event.
time (float): Simulation time when flow change occurred.
incoming (bool): True when component transfers in and False when component transfers out of component.
component (vcNode): Transferred component.
OnStateChangevcStatistics statistics,
float time,
int state,
vcNode component
Triggered when the state change occurs in a component.
The state argument is the new state or system state of component. Refer to States or SystemStates property values as needed.
See more
Parameters:
statistics (vcStatistics): Statistics behavior that recorded the event.
time (float): Simulation time when state change occurred.
state (int): The new state or system state of component.
component (vcNode): The component.